﻿/*
 * @Autor: PK
 * @Date: 2022/01/15 11:53:SS
 */

using ShkSimulation.core.template.agency;
using ShkSimulation.core.template.customer;

namespace ShkSimulation.carsharing.demo {

	public class ChargeInternalAgency: InternalAgency {

		public override InternalAgencyServeTime ServeTime { get; set; } = InternalAgencyServeTime.BeforeArrive | InternalAgencyServeTime.BeforeServe;

		public override InternalServeResult BeforeParentArrive(Customer customer) {
			//Console.WriteLine($"{ParentAgency.UniqueId}的内部服务台到达顾客：{ClockTime}");
			InternalServeResult result = InternalServeResult.ScheduledFinish(ClockTime.AddMinutes(10));
			return result;
		}

		public override InternalServeResult BeforeParentServe(Customer customer) {
			//Console.WriteLine($"{ParentAgency.UniqueId}的内部服务台服务顾客：{ClockTime}");
			InternalServeResult result = InternalServeResult.ScheduledFinish(ClockTime.AddMinutes(5));
			return result;
		}

		public override InternalServeResult BeforeParentDepart(Customer customer) {
			throw new System.NotImplementedException();
		}

	}

}